<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>课程视频</title>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <style>
        .el-carousel__item h3 {
            color: #475669;
            font-size: 14px;
            opacity: 0.75;
            line-height: 200px;
            margin: 0;
        }

        .el-carousel__item:nth-child(2n) {
            background-color: #99a9bf;
        }

        .el-carousel__item:nth-child(2n+1) {
            background-color: #d3dce6;
        }

        .time {
            font-size: 13px;
            color: #999;
        }

        .bottom {
            margin-top: 13px;
            line-height: 12px;
        }

        .button {
            padding: 0;
            float: right;
        }

        .video {
            width: 100%;
            display: block;
        }

        .clearfix:before,
        .clearfix:after {
            display: table;
            content: "";
        }

        .clearfix:after {
            clear: both
        }

        img{
            width:100%;
            height: inherit;
        }

        .coll{
            margin-left: 40px;
        }
    </style>
</head>

<body>
<div id="app">
    <template>
        <el-carousel :interval="4000" type="card" height="300px">
            <el-carousel-item v-for="item in imgList" :key="item.id">
                <img :src="item.id" class="image">
            </el-carousel-item>
        </el-carousel>
    </template>

    <el-row>
        <el-col :span="5" v-for="(o, index) in 4" :key="o" :offset="index > 0 ? 2 : 0" class="coll">
            <el-card :body-style="{ padding: '10px' }">
                <img src="../image/lisanshuxue.png" class="video">
                <div style="padding: 14px;">
                    <span>离散数学</span>
                    <div class="bottom clearfix">
                        <el-button type="text" class="button"><a href="display.html">查看</a></el-button>
                    </div>
                </div>
            </el-card>
        </el-col>
    </el-row>
</div>
</body>
<script src="../js/vue.js"></script>
<script src="../js/axios.min.js"></script>
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<!--<script type="text/javascript" src="../js/jquery.min.js"></script>-->
<!--<script src="../js/axios-0.18.0.js"></script>-->
<script>
    var vue = new Vue({
        el: '#app',
        data(){
            return{
                imgList:[
                    {id:0,id:'../image/fl.jpg'},
                    {id:1,id:'../image/yiyuzheng.png'},
                    {id:2,id:'../image/zhongyaoxue.jpg'},
                    {id:3,id:'../image/fuzhuang.png'},
                    {id:4,id:'../image/guojishangwu.png'},
                    {id:5,id:'../image/riyu.jpg'},
                ],
                currentDate:new Date()
            };

        }
    })
</script>

</html>